package com.server.code.feign;

import com.reason.common.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author tang wei
 * @version 1.0
 * @date 2020/7/2 10:29
 */


@FeignClient(name = "code")
public interface CodeFeign {
    /**
     *用户发送注册验证码
     * @param phone 手机号码
     * @return 验证码是否发送成功
     */
    @GetMapping("/code/getRegisterCode/{telephone}")
    public Result getCode(@PathVariable("telephone") Long phone );

    /**
     *用户发送登录验证码
     * @param phone 手机号码
     * @return 验证码是否发送成功
     */
    @GetMapping("/code/getLoginCode/{telephone}")
    public Result getLoginCode(@PathVariable("telephone") Long phone );



    /**
     *用户发送修改密码验证码
     * @param phone 手机号码
     * @return 验证码是否发送成功
     */
    @GetMapping("/code/getUpdatePasswordCode/{telephone}")
    public Result getUpdatePassword(@PathVariable("telephone") Long phone );

}

